home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-01-05 | 1.4 KB | 41 lines | [TEXT/GEOL] |
- Item 6895827 3-Jan-90 07:21
-
- From: DAWSON.M Dawson, Mark
-
- To: MACAPP.TECH$ MacApp Technical
-
- Sub: Hierarchical menus
-
- I'm having problems getting hierarchical menus to show up. I get the main
- menu's item, with its right arrow, to appear. But when I drag the cursor down
- to that menu item, it inverts it without showing the the hierarchical menu that
- should appear to the right. I couldn't find any documentation on how to get
- them to work, except for the DemoText program (which got rez on its
- hierarchical menu definition).
-
- I'm using MPW C++. Here's what I've done:
-
- resource 'cmnu' (4) {
- 4, textMenuProc, allEnabled, enabled, "test menu",
- { "hier menu", noIcon, hierarchicalMenu, "\0x08", plain, cHier }
- };
-
- resource 'cmnu' (8) {
- 8, textMenuProc, allEnabled, enabled, "hier menu",
- { "hier menu1", noIcon, noKey, noMark, plain, cHier1;
- "hier menu2", noIcon, noKey, noMark, plain, cHier2;
- "hier menu3", noIcon, noKey, noMark, plain, cHier3
- }
- };
-
- In the initialization part of my C++ code I:
- Enable(cHier,TRUE); Enable(cHier1,TRUE);
- Enable(cHier2,TRUE); Enable(cHier3,TRUE);
-
- Is there some other work I need to be doing? I had thought that hierarchical
- menus were just resource that you set up--I haven't found any documentation,
- though. Any help would be appreciated.
-
- --Mark
-
-